package com.itheima.admin.dto;

import com.baomidou.mybatisplus.annotation.TableId;
import com.itheima.admin.pojo.Role;
import lombok.Data;
import org.springframework.beans.BeanUtils;

@Data
public class RoleIdDto {
    @TableId("role_id")
    private String roleId;
    private String name;
    private String remark;

    public Role toRole(){
        Role role = new Role();
        BeanUtils.copyProperties(this,role);
        return role;
    }
}
